package com.bjtv.downapp.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by fan.shijun on 2015-12-25.
 */
@Controller
public class NstDown {

    @ResponseBody
    @RequestMapping(value = "/j", method = RequestMethod.GET)
    public ResponseResult index() {
        ResponseResult r = new ResponseResult();
        r.setState(-1);
        r.setMemo("hello hello");
        return r;
    }

    @ResponseBody
    @RequestMapping(value = "/s", method = RequestMethod.GET)
    public String gets() {
        ResponseResult r = new ResponseResult();
        r.setState(-1);
        r.setMemo("hello hello");
        return r.toString();
    }
}
